﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Mmht.BT;

public partial class admin_xtgly_glyxx : System.Web.UI.Page
{
    public DataRow dr;
    AdminBT adm = new AdminBT();
    public string name;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["admin_id"] == null)
        {
            Session.Clear();
            Response.Redirect("admin_logout.aspx");
            return;
        }
        int id = int.Parse(Session ["admin_id"].ToString ());
        DataTable dt = adm.Datarowbyid(id);
        if (dt.Rows.Count > 0)
        {
            dr=dt.Rows[0];
        }
        else 
        {
            Response.Write("未找到管理员信息");
        }
        int id1 = int.Parse(dr["created_by"].ToString());
        name = adm.FindbyId(id1);
    }
}
